package odday3;



public class dog extends Animal implements swim {
    dog(String name, int age, String color){
       // - Dog类：继承Animal、实现Swim接口，重写eat()、lookHome()、重写swim()
        super(name,age,color);
    }
    void eat(){
        System.out.println(name+"狗狗在吃骨头");

    }
   public void swim(){
       System.out.println(name+"狗狗在游泳");
    }
    void lookHome(){
        System.out.println(color+"色的狗狗在看家");
    }

}
